import request from '@/utils/request'

// 扫码校验物料
export function scanMaterialAPI(query) {
  return request({
    url: '/api/quality/validate/material',
    method: 'get',
    params: query
  })
}

// 获取列表
export function getListAPI(query) {
  return request({
    url: '/api/qualityInspectionTask/page',
    method: 'get',
    params: query
  })
}

// 触发搬运
export function transformAPI(data) {
  return request({
    url: '/api/quality/agv/dispatch',
    method: 'post',
    params: data
  })
}

// 扫码校验物料
export function executeQualityAPI(data) {
  return request({
    url: '/api/quality/validate/material',
    method: 'get',
    params: data
  })
}

// 获取箱码质检进度
export function getProgressAPI(data) {
  return request({
    url: '/api/quality/box/quality/progress',
    method: 'get',
    params: data
  })
}

// 质检取料灯光控制
export function controlLightAPI(data) {
  return request({
    url: '/api/quality/light/pickup',
    method: 'post',
    params: data
  })
}

// 处理废弃料
export function noneAPI(query) {
  // return request({
  //   url: '/api/quality/validate/material',
  //   method: 'get',
  //   params: query
  // })
}